package xyz.soleperson

import org.bukkit.plugin.java.JavaPlugin
import xyz.soleperson.comands.CommandMend

class Lesson : JavaPlugin() {
    override fun onEnable() {
        server.pluginManager.apply {
            registerEvents(Events(), this@Lesson)
        }
        getCommand("mend")!!.setExecutor(CommandMend())
        logger.info("插件已经启动")
    }

    override fun onDisable() {
        logger.info("插件已经卸载")
    }
}